-- GENERATED SPELL FOR [Bloodscale Overseer] --


function spell0_20088(pUnit, Event) --@Curse of Nazjatar,n/a--
pUnit:FullCastSpellOnTarget(34812,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20088', 4257, 1)
end

function spell1_20088(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20088', 10275, 1)
end

function Sorts_20088(pUnit, Event)
local choix_sorts_20088 = math.random(0, 1)
if choix_sorts_20088 == 0 then
pUnit:RegisterEvent('spell0_20088', 1, 1)
end
if choix_sorts_20088 == 1 then
pUnit:RegisterEvent('spell1_20088', 1, 1)
end
end

function mob20088_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20088', math.random(1500, 3000), 1)
end

function mob20088_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20088_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20088_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20088, 1, 'mob20088_Action')
RegisterUnitEvent(20088, 2, 'mob20088_Leave')
RegisterUnitEvent(20088, 3, 'mob20088_Kill')
RegisterUnitEvent(20088, 4, 'mob20088_Die')
